package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘远望
 * Date: 2025-03-19
 * Time: 19:15
 */
public class Booklist {
    private Book[] books = new Book[10];

    private int useSize;//放书的个数

    public int getUseSize() {
        return useSize;
    }

    public void setUseSize(int useSize) {
        this.useSize = useSize;
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBook(int pos , Book book) {

        this.books[pos] = book;
    }

    public Booklist() {
        this.books[0] = new Book("三国演义","罗贯中",20,"小说");
        this.books[1] = new Book("西游记","吴承恩",25,"小说");
        this.books[2] = new Book("红楼梦","曹雪芹",29,"小说");
        this.useSize = 3;
    }

}
